#ifndef Algebra_sgMpi_h
#define Algebra_sgMpi_h

#include <string>

#include "AlgebraModule.h"

SG_NAMESPACE_OPEN
namespace Algebra
{
    /** The universal support from all kinds of MPI implementations. */
    class ALGEBRA_EXPORT Mpi
    {
    public:
      /// The rank of the in the MPI_COMM_WORLD communicator.
      static int world_rank ();

      /// The number of processes in the MPI_COMM_WORLD communicator.
      static int world_size ();
    };
}  // namespace Algebra

SG_NAMESPACE_CLOSE

#endif  // Algebra_sgMpi_h